All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----sjl.Bind2ndFunction
Bind2ndFunction
class can wrap
a Function2
class so that it appears as a
Function1
.
Algo.transform(list.begin(), list.end(), list.begin() new Bind2ndFunction(new Integer(5), new FuncDifferenceInteger()));The above example will subtract the value of each integer element from 5 and store result in the list.
Copyright © 1996 Finn Bock
public Bind2ndFunction(Function2 func, Object val)
public Object perform(Object o)
All Packages Class Hierarchy This Package Previous Next Index